package com.bdqn.ch03.SL;

import com.bdqn.ch03.service.impl.RealBuyer;
import org.apache.log4j.Logger;

/**
 * IntermediarySubclassTest
 * 示例7 继承RealBuyer 并重写其中的业务方法实现代理
 * @aurhor Administrator  whs
 * @since 2024/7/1
 */
public class IntermediarySubclassTest {
    private static Logger logger = Logger.getLogger(IntermediarySubclassTest.class);

    public static void main(String[] args) {
        RealBuyer buyer = new IntermediarySubclass();
        String result = buyer.havealook();
        logger.debug(  result);
        /**
         * 2024-07-01 19:34:27 [DEBUG] 前期准备。 com.bdqn.ch03.SL.IntermediarySubclass.before(IntermediarySubclass.java:30)
         * 2024-07-01 19:34:27 [DEBUG] 查找房源。 com.bdqn.ch03.SL.IntermediarySubclass.before(IntermediarySubclass.java:31)
         * 2024-07-01 19:34:27 [DEBUG] 和卖家沟通时间。 com.bdqn.ch03.SL.IntermediarySubclass.before(IntermediarySubclass.java:32)
         * 2024-07-01 19:34:27 [DEBUG] 实地查看一下 com.bdqn.ch03.service.impl.RealBuyer.havealook(RealBuyer.java:22)
         * 2024-07-01 19:34:27 [DEBUG] 后期跟踪。 com.bdqn.ch03.SL.IntermediarySubclass.after(IntermediarySubclass.java:35)
         * 2024-07-01 19:34:27 [DEBUG] 和买家沟通意见。 com.bdqn.ch03.SL.IntermediarySubclass.after(IntermediarySubclass.java:36)
         * 2024-07-01 19:34:27 [DEBUG] 看房记录：买家反馈“一些意见” com.bdqn.ch03.SL.IntermediarySubclassTest.main(IntermediarySubclassTest.java:18)
         */
    }
}
